$(function(){

	//IOS :active伪类无效的解决方法 
	document.body.addEventListener('touchstart', function () {});  

	//获取页面中部可滑动区域的最大高度
	function highly(){
		highly_gao = $(window).height();
		$("body").css("min-height",highly_gao);
	};
	highly();
	$(window).resize(function(){
		highly();
	});	
	
	//让页面第一次加载先不执行过渡效果
	$(".zhicwl-btn, .zhicwl-header-icon").css("-webkit-transition","all .15s linear").css("transition","all .15s linear"); 

	//淡出淡入平滑返回到网页顶部		
	function gotoTop(min_height){
		$("#gotoTop").click(function(){
				$('html,body').animate({scrollTop:0},300);
		});
		min_height ? min_height = min_height : min_height = 300;
		$(window).scroll(function(){
			var s = $(window).scrollTop();
			if( s > min_height){
				$("#gotoTop").fadeIn(300);
			}else{
				$("#gotoTop").fadeOut(300);
			};
		});
	};
	gotoTop();

})